import { PoylineEntity } from './Entity'
export function getReturnEntity(obj) {
    let poylineEntity = new PoylineEntity()
    if (obj != null) {
        poylineEntity.ID = obj.poylineId
        poylineEntity.ActivityCode = obj.activityValue
        poylineEntity.CityCode = obj.cityValue
        poylineEntity.VenueCode = obj.venueValue
        poylineEntity.PathName = obj.poylineName
        poylineEntity.Pellucidity = obj.strokeOpacity
        poylineEntity.Width = obj.strokeWeight
        poylineEntity.Colour = obj.strokeColor
        poylineEntity.Pattern = obj.strokeStyle
        poylineEntity.Path = JSON.stringify(obj.pointsArr)
        poylineEntity.IsValid = obj.whetherValid
        poylineEntity.Backup1 = ""
        poylineEntity.Backup2 = ""
        poylineEntity.Backup3 = ""
    } else {
        console.log("obj is null")
    }
    // console.log(poylineEntity)
    return poylineEntity
}